import yaml

from utils import ROOT_PATH

data_folder = ROOT_PATH / "data"  # 模块变量


class Utils:

    @classmethod
    def get_yaml_data(cls, yaml_path, folder=data_folder):
        with open(data_folder / yaml_path, 'r', encoding='utf-8') as f:
            data = yaml.safe_load(f)
        return data

    # @classmethod
    # def get_current_time(cls):
    #     return time.strftime("%Y-%m-%d %H-%M-%S")
